package com.jingming.consult

import android.app.Application
import androidx.multidex.MultiDex
import cn.jpush.im.android.api.JMessageClient
import com.hjq.toast.ToastUtils


class MyApplication : Application() {
    companion object {
        var _context: Application? = null
    }

    override fun onCreate() {
        super.onCreate()
        MultiDex.install(this);
        _context = this
        ToastUtils.init(this);
        initJiGuang()
    }

    /**
     * 极光初始化
     */
    private fun initJiGuang() {
        JMessageClient.setDebugMode(BuildConfig.DEBUG)
        JMessageClient.init(this)
    }

}